package org.jeecg.modules.arc.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.arc.entity.ArcCustomers;
import org.jeecg.modules.arc.vo.ArcIndexDataVO;
import org.springframework.transaction.annotation.Transactional;

import java.text.ParseException;
import java.util.List;

/**
 * @Description: 用户水表
 * @Author: jeecg-boot
 * @Date:   2022-02-07
 * @Version: V1.0
 */
public interface IArcCustomersService extends IService<ArcCustomers> {

    //保存-开户-分布数据 水表用户及缴费账户
    @Transactional
    Result<?> saveAccount(JSONObject cusObj) throws ParseException;

    /**每月待抄用户初始化*/
    public void readMonthInit();

    /**查询水表用户首页数据*/
    List<ArcIndexDataVO> queryArcIndexData();

    /**报停*/
    Result<?> addNotice(JSONObject cusObj);
    /**停水*/
    Result<?> addStop(JSONObject cusObj);
    /**销户*/
    Result<?> addCancel(JSONObject cusObj);

    Result<?> addRecover(JSONObject cusObj);

    /**批量修改*/
    Result<?> addBatch(JSONObject cusObj);

    /**一月多抄月初始化*/
    public void mitReadInit();
    /**批量修改水表*/
    public Result<?> batchMater(JSONObject materObj);

    /**获取下一个编号*/
    String queryNextCode();
}
